package com.jk.controller;

import com.wxapi.WxApiCall.WxApiCall;
import com.wxapi.model.RequestModel;

import java.util.HashMap;
import java.util.Map;

public class MsgUtil {

    public static void testMsg(String mobileNumber) {
        RequestModel model = new RequestModel();
        model.setGwUrl("https://way.jd.com/chuangxin/dxjk");
        model.setAppkey("fd1eb4fe79f8e647d441e67f1cb4c026");
        Map queryMap = new HashMap();
        queryMap.put("mobile",mobileNumber); //访问参数
        queryMap.put("content","【成都创信信息】验证码为：5873,欢迎注册平台！"); //访问参数
        model.setQueryParams(queryMap);
        WxApiCall call = new WxApiCall();
        call.setModel(model);
        String request = call.request();
        System.out.println(request);
    }
}
